package top.lv666.graduation_design_serve.service;

import top.lv666.graduation_design_serve.pojo.Message;
import top.lv666.graduation_design_serve.pojo.ReplyMessage;

import java.util.List;
import java.util.Map;
import java.util.stream.Stream;

public interface MessageService {
    /**
     * @apiNote 在博客中发表评论
     */
    void CreateBlogMessage(Map<String, Object> map);

    /**
     * @apiNote 获取评论
     */
    List<Message> QueryBlogMessage(Map<String, Object> map);

    /**
     * @apiNote 获取当前博客的评论总数
     */
    int getBlogMessageNumber(String blogId);

    /**
     * @apiNote 发布二级评论
     */
    void CreateSecondaryMessage(Map<String, Object> map);

    /**
     * @apiNote 二级评论下的回复数量
     */
    int QuerySecondaryMessageCount(Map<String, Object> map);

    /**
     * @apiNote 分页获取二级回复
     */
    List<ReplyMessage> QuerySecondaryMessageLimit(Map<String, Object> map);
}
